<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
$strSuppleID = trim($_data["suppleid"]);
$strAcc = trim($_data["acc"]);
$strPayupDate = trim($_data["payupdate"]);

$strSQL = "select a.ID, a.isPayOff, b.SuppleID from `bet_BetList` a, `bet_BetListContent` b where a.ID = b.ID and b.SuppleID in (".$strSuppleID.") and b.MemAccount = '".$strAcc."' and a.PayupDate = '".$strPayupDate."'";

if(!$RS = PMA_mysql_query($strSQL, $$_Conn)){
	$GLOBALS["errormessage"] = "Find Wager Data Error!!";
	$GLOBALS["errorhidden"] = "Error: ".PMA_mysql_error($$_Conn)."\nSQL:".$strSQL."\nLine:".__LINE__."\nPage:".__FILE__;
	ErrMsgOutputHTML("Error", "", 1);
}

if(PMA_mysql_num_rows($RS) == 0){
	$GLOBALS["errormessage"] = "No Wager Data!!";
	ErrMsgOutputHTML("Error", "", 1);
}
	
while($Rows = PMA_mysql_fetch_object($RS)){
	$strCon .= '$'."arrWager[".$Rows -> SuppleID."]=array('".$Rows -> ID."','".$Rows -> isPayOff."');\n";
}
/*=================================================================*/
header("Cache-Control: no-store, no-cache, must-revalidate");	  // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");															  // HTTP/1.0
print $strCon."\n";
?>